<%@page import="java.awt.*" %>
<%@ page import="Demo1.Address" %>
<%@ page import="Demo1.User" %>
<%@page contentType="text/html; charset=UTF-8"%>
<%-- 设置出错之后的跳转界面 --%>
<%--<%@page errorPage="error.jsp"%>--%>
你好
hello world

<%--  这里的代码是写到了service方法中  --%>
<%--<% System.out.println("this is content");%>--%>

<%-- 这里的代码是写到了类中的 --%>
<%--<%!  int i =0 ; %>--%>

<%-- 这里的代码是写进了 out.print();的括号中了 所以这里最后不能有分号 --%>
<%--<%= i%>--%>

<%
     request.setAttribute("name","jack");
     request.setAttribute("pwd","1223");
    Address address = new Address("成都",666);
    User user = new User("jack","123456","男");
    user.setAddress(address);
    request.setAttribute("UserObj",user);
%>

${name}
${pwd}
${UserObj.address.city}
${UserObj.info1}
<br/>
${UserObj.info2}
${UserO}
